﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ResumeAdd.aspx.cs" Inherits="Job_ResumeAdd" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="~/Control/Upfile.ascx" TagName="Upfile" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>应聘者登记简历</title>
<link rel="stylesheet" href="../Templates/blue2/skins/default/websen.css" />
<link href="../Css/job/job.css" rel="stylesheet" type="text/css" />
<link href="../Css/login/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../Control/My97date/My97DatePicker/WdatePicker.js"></script>
<script src="/js/Page.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/JScript.js"></script>

</head>
<body>
<asp:Label ID="lblHead" Text="WS_登录头部" runat="server"></asp:Label>
<div class="main_box">
    <div class="nav_main">
        <ul>
            <li class="nov_now6">1.填写注册信息</li>
            <li>2.注册成功</li>
        </ul>
    </div>
    <div class="main_box970">
        <form id="form1" runat="server">
                <div id="divSucess" class="itemtitle" runat="server" visible="false">
                    您好，添加成功了！
                </div>
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tr>
                        <td colspan="4">
                            <div class="top_add">
                                基本信息</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            欲求职位：<font color="red">*</font>
                        </td>
                        <td class="left2" colspan="3" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtPosition" runat="server" Height="20px" Width="300px"></asp:TextBox>
                            自己所期望的职位，尽可能详细
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPosition"
                                ErrorMessage="欲求职位不能为空"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            求职者照片：</td>
                        <td class="left2" colspan="3" style="border-bottom: 1px #CCCCCC dashed;">
                            <div style="float: left">
                                <asp:HiddenField ID="ImgUrl1" runat="server" />
                                <asp:HiddenField ID="HiddenField1" runat="server" />
                                <a href="" id="txturldz" target="_blank">
                                    <img src="../Images/System/wutu1.gif" alt="" name="ImgUrl" width="98" height="98"
                                        border="0" id="ImgUrl" runat="server" /></a><br />
                                <input id="txtupload" type="button" value="上传" /><br />
                                <div id="rowTest" style="display: none">
                                    <iframe name="tag" src="../UpFile/Upload.html?Expo" style="width: 550px; height: 135px"
                                        frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">
                                    </iframe>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            出生年月：<span style="color: #ff0000">*</span></td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtAge" runat="server" class="Wdate" type="text" onfocus="new WdatePicker(this,null,false,'whyGreen')"
                                Height="20px" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtAge"
                                ErrorMessage="年龄不能为空"></asp:RequiredFieldValidator></td>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            最高学历：
                        </td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:DropDownList ID="txteducation" runat="server" Width="100px">
                                <asp:ListItem Value="不限">不限</asp:ListItem>
                                <asp:ListItem Value="高中">高中</asp:ListItem>
                                <asp:ListItem Value="中技">中技</asp:ListItem>
                                <asp:ListItem Value="中专">中专</asp:ListItem>
                                <asp:ListItem Value="大专">大专</asp:ListItem>
                                <asp:ListItem Selected="True" Value="本科">本科</asp:ListItem>
                                <asp:ListItem Value="硕士">硕士</asp:ListItem>
                                <asp:ListItem Value="博士">博士</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            婚姻状况：
                        </td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:RadioButtonList ID="Radhunyin" runat="server" Height="33px" RepeatDirection="Horizontal"
                                Width="126px">
                                <asp:ListItem Selected="True">已婚</asp:ListItem>
                                <asp:ListItem>未婚</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            毕业院校：<span style="color: #ff0000">*</span></td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtGraduteSchool" runat="server" Height="20px" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtGraduteSchool"
                                ErrorMessage="毕业院校不能为空"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            计算机水平：
                        </td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:DropDownList ID="dropcomputer" runat="server" Width="108px">
                                <asp:ListItem>专业</asp:ListItem>
                                <asp:ListItem>精通</asp:ListItem>
                                <asp:ListItem>熟练</asp:ListItem>
                                <asp:ListItem Selected="True">一般</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            籍贯：<span style="color: #ff0000">*</span>
                        </td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtNative" runat="server" Height="20px" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtNative"
                                ErrorMessage="籍贯不能为空"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            外语水平：
                        </td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:DropDownList ID="dropEnlish" runat="server" Width="108px">
                                <asp:ListItem>专业</asp:ListItem>
                                <asp:ListItem>精通</asp:ListItem>
                                <asp:ListItem>熟练</asp:ListItem>
                                <asp:ListItem Selected="True">一般</asp:ListItem>
                            </asp:DropDownList></td>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            欲工作地点：<span style="color: #ff0000">*</span></td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                              <span>
                         <select id="sltP" style=" width:104px;" onchange="mino(this.options[this.selectedIndex].innerText)" >
                        </select>
 <select id="sltC" style=" width:104px; display:none">
                        </select>
 <select id="sltA" style=" width:104px; display:none" >
 </select>
						<input id="sel_p" name="sel_p" type="hidden" value="<%=Request.QueryString["pid"]==null?"":Request.QueryString["pid"].ToString() %>" />                    <input id="sel_c" name="sel_c" type="hidden" value="<%=Request.QueryString["cid"]==null?"":Request.QueryString["cid"].ToString() %>" />                    <input id="sel_a" name="sel_a" type="hidden" value="<%=Request.QueryString["aid"]==null?"":Request.QueryString["aid"].ToString() %>" />
                    <asp:TextBox ID="TextBox1" runat="server" Visible=false></asp:TextBox>
                    <input id="minop" name="minop" type="hidden" runat="server" />
			                    <script language="javascript" type="text/javascript">
			                        var sP = document.getElementById("sltP");
			                        var sC = document.getElementById("sltC");
			                        var sA = document.getElementById("sltA");
			                        var pid = document.getElementById("sel_p").value;
			                        var cid = document.getElementById("sel_c").value;
			                        var aid = document.getElementById("sel_a").value;
			                        SetCity(sP, sC, sA, pid, cid, aid);
                    </script>
                    </span></td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            人才类型：
                        </td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                         <select name="dropType_sel" id="dropType_sel" style=" width:104px;"  onchange="gettypelist(this.value)">
                    <option value="0">选择职位类别</option>
                    <%foreach (System.Data.DataRow dr in ftypeTab.Rows)
                      { %>
                    <option value="<%=dr["ID"] %>"><%=dr["TypeName"] %></option>
                    <%} %>
                    
                    </select>
                    <span id="mino_type_span">
                    <%=fTypelist %>
                        </span><input id="dropTypeID" name="dropTypeID" type="hidden" runat="server" value="0" /></td>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            工作经验：
                        </td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:DropDownList ID="txtwork" runat="server" Width="100px">
                                <asp:ListItem Selected="True">无</asp:ListItem>
                                <asp:ListItem>1-3年</asp:ListItem>
                                <asp:ListItem>3-5年</asp:ListItem>
                                <asp:ListItem>5年以上</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            要求薪资：</td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:DropDownList ID="dropsalary" runat="server" Width="100px">
                                <asp:ListItem Selected="True">面议</asp:ListItem>
                                <asp:ListItem>1000以下</asp:ListItem>
                                <asp:ListItem>1000-1999</asp:ListItem>
                                <asp:ListItem>2000-2999</asp:ListItem>
                                <asp:ListItem>3000-3999</asp:ListItem>
                                <asp:ListItem>4000-4999</asp:ListItem>
                                <asp:ListItem>5000-7999</asp:ListItem>
                                <asp:ListItem>8000-10000</asp:ListItem>
                                <asp:ListItem>10000以上</asp:ListItem>
                            </asp:DropDownList></td>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            性别：
                        </td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:DropDownList ID="DrpSex" runat="server" Width="100px">
                                <asp:ListItem>先生</asp:ListItem>
                                <asp:ListItem>女士</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            求职描述：</td>
                        <td class="left2" colspan="3" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="400px"
                                Height="100px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td class="left1" style="height: 99px; border-bottom: 1px #CCCCCC dashed;">
                            个人简历：</td>
                        <td class="left2" colspan="3" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtPersonResum" runat="server" Height="100px" TextMode="MultiLine"
                                Width="400px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <div class="top_add">
                                联系信息</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            姓名：<span style="color: #ff0000">*</span></td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtName" runat="server" Height="20px" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="姓名不能为空"
                                ControlToValidate="txtName"></asp:RequiredFieldValidator></td>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            QQ：</td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtQQ" runat="server" Height="20px" Width="150px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            电话：<span style="color: #ff0000">*</span></td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtMobel" runat="server" Height="20px" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtMobel"
                                ErrorMessage="电话不能为空"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtMobel"
                                ErrorMessage="请输入7或8位的电话号码" ValidationExpression="^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$"></asp:RegularExpressionValidator></td>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            手机：<span style="color: #ff0000">*</span></td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtTelphone" runat="server" Height="20px" Width="150px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtTelphone"
                                ErrorMessage="请输入以13、15开始的11位的阿拉伯数字" ValidationExpression="^((\(\d{3}\))|(\d{3}\-))?13[0-9]\d{8}|15[89]\d{8}"></asp:RegularExpressionValidator></td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            Email：<span style="color: #ff0000">*</span></td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtEmail" runat="server" Height="20px" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtEmail"
                                ErrorMessage="电子邮件不能为空"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEmail"
                                ErrorMessage="无效的电子邮件" ValidationExpression="\S+@\S+\.\S{2,3}"></asp:RegularExpressionValidator>
                        </td>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            联系地址：<span style="color: #ff0000">*</span></td>
                        <td class="left2" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtAddress" runat="server" Height="20px" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtAddress"
                                ErrorMessage="联系地址不能为空"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <div class="top_add">
                                注册为本站会员</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            登陆名：<span style="color: #ff0000">*</span></td>
                        <td class="left2" colspan="3" style="border-bottom: 1px #CCCCCC dashed;">
                            <asp:TextBox ID="txtLoginName" runat="server" Height="20px" Width="150px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtLoginName"
                                ErrorMessage="无效的用户名" ValidationExpression="\w+"></asp:RegularExpressionValidator>
                            <asp:Label ID="checkUser" runat="server" Style="color: red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtLoginName"
                                ErrorMessage="用户名不能为空"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            密码：<span style="color: #ff0000">*</span></td>
                        <td class="left2" colspan="3" style="border-bottom: 1px #CCCCCC dashed;">
                            <input id="txtPassword" type="password" runat="server" size="26" />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtPassword"
                                ErrorMessage="密码长度最少为6位" ValidationExpression="^[\s\S]{6,}$"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtPassword"
                                ErrorMessage="密码不能为空"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td class="left1" style="border-bottom: 1px #CCCCCC dashed;">
                            重复密码：<span style="color: #ff0000">*</span></td>
                        <td class="left2" colspan="3" style="border-bottom: 1px #CCCCCC dashed;">
                            <input id="Password1" type="password" runat="server" size="26" />
                            <asp:CompareValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="Password1"
                                ControlToCompare="txtPassword" ErrorMessage="两次密码输入不一致"></asp:CompareValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="Password1"
                                ErrorMessage="重复密码不能为空"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td colspan="4" align="center" style="height: 45px">
                            <asp:Button ID="btnSave" runat="server" Text="发布" OnClick="btnSave_Click" CssClass="xjbg" />
                            <asp:Button ID="btnCancel" runat="server" Text="取消" CssClass="xjbg" CausesValidation="False"
                                PostBackUrl="~/job/Index.aspx" /></td>
                    </tr>
                </table>
        </form>
    </div>
</div>
<div id="font" class=" main730">
    <p>
        <asp:Label ID="bt" Text="WS_整站底部" runat="server"></asp:Label>
    </p>
</div>
    <script type="text/javascript">
        function mino(val) {
            if (val != "") {
                document.getElementById('<%=minop.ClientID %>').value = val;
            }
        }
        function gettypelist(val) {
            var msg = Job_ResumeAdd.getTypeList(val);
            document.getElementById('mino_type_span').innerHTML = msg.value;

            document.getElementById('<%=dropTypeID.ClientID %>').value = val;
        }
        function minochangeID(val) {
            document.getElementById('<%=dropTypeID.ClientID %>').value = val;
        }
    </script>
<script type="text/javascript" src="../js/Common.js"></script>
</body>
</html>
